import axios from './axios'

/**
 *
 履带吊设备
 */
// 获取履带吊列表
export function getcrawlerList(params) {
    const url = '/ms/api/crawler/list'
    return axios.get(url,params)
}
// 获取履带吊详情
export function getcrawlerdetail(params) {
    const url = '/ms/api/crawler/detail/'
    return axios.get(url + params)
}
// 添加履带吊
export function getcrawlerAdd(params) {
    const url = '/ms/api/crawler/add'
    return axios.post(url, params)
}
// 修改履带吊
export function getcrawlerEdit(params) {
    const url = '/ms/api/crawler/edit'
    return axios.post(url, params)
}
// 删除履带吊
export function getcrawlertDel(params) {
    const url = '/ms/api/crawler/del/'
    return axios.post(url+params)
}
// 绑定硬件
export function getcrawlerbind(params) {
    const url = '/ms/api/crawler/bind'
    return axios.post(url,params)
}
// 解绑硬件
export function getcrawlerunbind(params) {
    const url = '/ms/api/crawler/unbind/'
    return axios.post(url + params)
}
// 获取履带吊最新数据
export function getcrawlerlatest(params) {
    const url = '/ms/api/crawler/latest'
    return axios.get(url,params)
}
// 获取履带吊历史数据
export function getcrawlerlog(params) {
    const url = '/ms/api/crawler/log'
    return axios.get(url,params)
}
// 编辑履带吊监控
export function getCrawlerBindFvs(params) {
    const url = '/ms/api/crawler/bind/fvs'
    return axios.post(url,params)
}
//履带获取绑定监控列表
export function getCrawlerFvsList(params) {
    const url = '/ms/api/crawler/fvs/list'
    return axios.get(url, params)
}
